import { ref } from 'vue'
import { defineStore } from 'pinia'

export const usePopupStore = defineStore('popup', () => {
  const show = ref(false)

  const openPopup = () => {
    show.value = true
  }

  const closePopup = () => {
    show.value = false
  }

  return { show, openPopup, closePopup }
})